If this is not a bug, can anyone then explain the reason behind this behavior? Indeed it seems that every odd number of letters will return false:
string test = "aaaaaaaaaaaaaaaaaaaa";
Console.WriteLine(test.StartsWith("aa"));
Console.WriteLine(test.StartsWith("aaa"));
Console.WriteLine(test.StartsWith("aaaa"));
Console.WriteLine(test.StartsWith("aaaaa"));
Console.WriteLine(test.StartsWith("aaaaaa"));
Console.WriteLine(test.StartsWith("aaaaaaa"));
yields following output when executed on a Danish system:
True
False
True
False
True
False
Culture
thing maybe.. – Argottrue
. – AlphonseCulture
issue.. ideone.com/vHT1rR – Argot